STEP 16: When the user enters text for the first question, we say "cannot divide by zero." That doesn't make sense!

The variable e in an except statement stores the actual error the computer experienced.

  • Inside the print command underneath except, change "Cannot divide by 0" to e.
  • Click Run and enter text for the first question. What do you see printed to the Console?
  • When you're ready click Submit and Next to move on.

    To navigate the page using the TAB key, first press ESC to exit the code editor.

    # THIS ACTIVITY IS IN PREVIEW ONLY MODE
    • Run Code
    • Submit Work
    • Next Activity
    • Show Console
    • Reset Code Editor
    • Codesters How To (opens in a new tab)